package com.fastjars.freemarker.shiro;

import com.fastjars.freemarker.shiro.permission.HasPermissionTag;
import com.fastjars.freemarker.shiro.permission.LacksPermissionTag;
import com.fastjars.freemarker.shiro.role.HasAnyRolesTag;
import com.fastjars.freemarker.shiro.role.HasRoleTag;
import com.fastjars.freemarker.shiro.role.LacksRoleTag;
import freemarker.template.SimpleHash;

/**
 * ShiroTags
 *
 * @author Brant Liu <br> 邮箱：<br>lbf1988@qq.com <br>日期：<br>2018/10/10
 * @version 1.0.0
 */
public class ShiroTags extends SimpleHash {
    public static final String TAGS_NAME = "shiro";
    public ShiroTags() {
        put("authenticated", new AuthenticatedTag());
        put("guest", new GuestTag());
        put("hasAnyRoles", new HasAnyRolesTag());
        put("hasPermission", new HasPermissionTag());
        put("hasRole", new HasRoleTag());
        put("lacksPermission", new LacksPermissionTag());
        put("lacksRole", new LacksRoleTag());
        put("notAuthenticated", new NotAuthenticatedTag());
        put("principal", new PrincipalTag());
        put("user", new UserTag());
    }
}
